#include<stdio.h>
#include<string.h>
void reverse(char* left, char* right)
{
    while (left < right)
    {
        char tmp = *left;
        *left = *right;
        *right = tmp;
        left++;
        right--;
    }
}

int main()
{
	char a[100];
	gets(a);
	int chang =  strlen(a);
	reverse(a,a + chang - 1);
	printf("%s\n",a);
	return 0;
}

